package com.ruoyi.welder.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.welder.mapper.WelderQualificationsMapper;
import com.ruoyi.welder.domain.WelderQualifications;
import com.ruoyi.welder.service.IWelderQualificationsService;
import com.ruoyi.common.core.text.Convert;

/**
 * 焊工资质管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-01-14
 */
@Service
public class WelderQualificationsServiceImpl implements IWelderQualificationsService 
{
    @Autowired
    private WelderQualificationsMapper welderQualificationsMapper;

    /**
     * 查询焊工资质管理
     * 
     * @param id 焊工资质管理主键
     * @return 焊工资质管理
     */
    @Override
    public WelderQualifications selectWelderQualificationsById(Long id)
    {
        return welderQualificationsMapper.selectWelderQualificationsById(id);
    }

    /**
     * 查询焊工资质管理列表
     * 
     * @param welderQualifications 焊工资质管理
     * @return 焊工资质管理
     */
    @Override
    public List<WelderQualifications> selectWelderQualificationsList(WelderQualifications welderQualifications)
    {
        return welderQualificationsMapper.selectWelderQualificationsList(welderQualifications);
    }

    /**
     * 新增焊工资质管理
     * 
     * @param welderQualifications 焊工资质管理
     * @return 结果
     */
    @Override
    public int insertWelderQualifications(WelderQualifications welderQualifications)
    {
        return welderQualificationsMapper.insertWelderQualifications(welderQualifications);
    }

    /**
     * 修改焊工资质管理
     * 
     * @param welderQualifications 焊工资质管理
     * @return 结果
     */
    @Override
    public int updateWelderQualifications(WelderQualifications welderQualifications)
    {
        return welderQualificationsMapper.updateWelderQualifications(welderQualifications);
    }

    /**
     * 批量删除焊工资质管理
     * 
     * @param ids 需要删除的焊工资质管理主键
     * @return 结果
     */
    @Override
    public int deleteWelderQualificationsByIds(String ids)
    {
        return welderQualificationsMapper.deleteWelderQualificationsByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除焊工资质管理信息
     * 
     * @param id 焊工资质管理主键
     * @return 结果
     */
    @Override
    public int deleteWelderQualificationsById(Long id)
    {
        return welderQualificationsMapper.deleteWelderQualificationsById(id);
    }
}
